import React from "react";

import { context } from "./App";
// const { Consumer } = createContext();

const Child = () => {
  return (
    <div>
      这是child组件 -{" "}
      <context.Consumer>
        {(value) => <span>{value.count}</span>}
      </context.Consumer>
    </div>
  );
};

export default Child;
